package lekcja2.zadanie2;

import javax.swing.*;

/**
 *  Podawanie danych w okienku JOptionPane
 */
public class Zadanie2 {
    public static void main(String[] args) throws ClassNotFoundException, UnsupportedLookAndFeelException, InstantiationException, IllegalAccessException {
        UIManager.setLookAndFeel("javax.swing.plaf.nimbus.NimbusLookAndFeel");

        String imie = JOptionPane.showInputDialog("Podaj imie");

        if(imie == null) {
            JOptionPane.showMessageDialog(null,"Nie podałeś imienia");
        }  else{
            JOptionPane.showMessageDialog(null, "Witaj " + imie);
        }
    }
}
